import java.io.*;

public class diff {
  public static void main(String[] args) throws IOException {
//beolvassa a system.in tartalmat
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
//s1 stringben tarolodik
    String s1;

//beolvassa egy fajl tartalmat
    FileInputStream fstream = null;
    try { 
      fstream = new FileInputStream(args[0]); 
    } 
    catch(FileNotFoundException e) {
      System.out.println("file \""+args[0]+"\" not found"); 
      System.exit(1); 
    } 
    DataInputStream fajl = new DataInputStream(fstream);
    BufferedReader br = new BufferedReader(new InputStreamReader(fajl));

//s2 stringben tarolodik
    String s2;

//kiirasok
    while (((s1 = in.readLine()) != null) && ((s2 = br.readLine()) != null)){
      if (s1.compareTo(s2)!=0){
        System.out.print (s1);
        System.out.print (" >< ");
        System.out.println (s2);
      } else System.out.println ("OK");
    }
    fajl.close();

  }
} 